package com.dt76.smallloanfrontendservice.controller.xiaohao;

import com.dt76.smallloanfrontendservice.pojo.xiaohao.HxLoanType;
import com.dt76.smallloanfrontendservice.service.xiaohao.HXLoanTypeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class HXLoanTypeController {

    @Resource
    private HXLoanTypeService hxLoanTypeService;

    @RequestMapping("/xiaohao/HXLoanType/qryAllLoanType")
    @ResponseBody
    public List<HxLoanType> qryAllLoanType() {
        return hxLoanTypeService.qryAllLoanType();
    }

}
